import {createApp} from 'vue'
import './style.css'
import App from './App.vue'
import router from "./router/index.js";
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as Icons from '@element-plus/icons-vue'
import {toLine} from "./utils";
import MyComponents from './components'


const app = createApp(App)
// 注册icon组件
for (let i in Icons) {
    app.component(`el-icon-${toLine(i)}`, (Icons as any)[i])
    // console.log((Icons as any)[i])
}
app.use(router).use(ElementPlus).use(MyComponents)
app.mount('#app')